#include <Arduino.h>
#include <output_export.h>

#ifdef __cplusplus
extern "C"
{
#endif

#ifdef __GNUC__
    void export_start(unsigned int baudrate __attribute__((unused)))
#else
void export_start(unsigned int baudrate)
#endif
    {
        Serial.begin(115200);
    }

    void export_char(int c)
    {
        Serial.write(c);
    }

    void export_flush(void)
    {
        // Serial.flush();
    }

    void export_complete(void)
    {
        // Serial.end();
    }
#ifdef __cplusplus
}
#endif /* extern "C" */